<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	
	<div class="topBar">
			<div class="w_1200a tr">
				<ul class="topList">
					<%if (name!=""){%>
					<li><a href="#">您好，<%=name %></a></li>
					<li><a href="${pageContext.request.contextPath }/logout">退出</a></li>
					<%}else{%>
					<li><a href="${pageContext.request.contextPath }/login.jsp">请登录</a></li>
					<%}%>
					
					<li><a href="${pageContext.request.contextPath }/contact">联系我们</a></li>	
				</ul>
			</div>
		</div>
		<script>
		(function() {
		
		     $.ajax({
                 url: '${pageContext.request.contextPath}/frontend/cart/getcount', // 每个页签自定义属性，获取ajax请求url
                 method: 'post',
				async: false,
                 data:  {"userID":0},
                 dataType: 'json',
                 success: function(data) {
                         $(".ci-count").text(data+"件");
                 }
             });
             
             function doSubmitHead(){
		         var f = document.searchHeadForm;
		         f.submit();
	       };
		 
		})();
		</script>
	
